import request from '@/utils/request'

// 查询户资金修改列表
export function listRepairGroup(query) {
  return request({
    url: '/repair/repairGroup/list',
    method: 'get',
    params: query
  })
}

// 查询户资金修改详细
export function getRepairGroup(houseId,projectId) {
  return request({
    url: '/repair/repairGroup/' + houseId +"/"+ projectId,
    method: 'get'
  })
}
// 查询单价详细

export function getCalculate(query) {
  return request({
    url: '/repair/repairGroup/getCalculate' ,
    method: 'get',
    params: query
  })
}

// 新增户资金修改
export function addRepairGroup(data) {
  return request({
    url: '/repair/repairGroup',
    method: 'post',
    data: data
  })
}

// 修改户资金修改
export function updateRepairGroup(data) {
  return request({
    url: '/repair/repairGroup',
    method: 'put',
    data: data
  })
}

// 修改户资金修改
export function updateCalculate(data) {
  return request({
    url: '/repair/repairGroup/updateCalculate',
    method: 'put',
    data: data
  })
}

// 删除户资金修改
export function delRepairGroup(doorId) {
  return request({
    url: '/repair/repairGroup/' + doorId,
    method: 'delete'
  })
}
